package com.shopx.task.job;

import com.shopx.hr.service.IEmpLevelService;
import com.shopx.task.AbstractQuatazJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author lituo
 * @version 1.0
 * @description: TODO
 * @date 2025/8/13 上午11:08
 */
@Slf4j
@Service
public class SyncHrLevelJob extends AbstractQuatazJob {
    @Resource
    private IEmpLevelService empLevelService;

    @Override
    public void execute() {
        log.info("SyncHrLevelJob.begin");
        try{
            empLevelService.syncLevelEmpList();
        }catch (Exception e){
            log.error("SyncHrLevelJob.error",e);
        }
        log.info("SyncHrLevelJob.end");
    }
}
